package byx.container.annotation.ConditionalTest.a;

import byx.container.annotation.annotation.Conditional;
import byx.container.core.Container;
import java.util.function.Predicate;

@Conditional(MyPredicate1.class)
public class B {
    private final A a;

    public B(A a) {
        this.a = a;
    }

    public A getA() {
        return a;
    }
}

class MyPredicate1 implements Predicate<Container> {
    @Override
    public boolean test(Container container) {
        return container.exist(A.class);
    }
}
